import Vue from 'vue'
import axios from 'axios'

import App from './App'
import router from './router'
import store from './store'
import myutil from '../api/myutil'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import { groups, Member } from '../api/48infos'

Vue.use(ElementUI)

// 将api方法绑定到全局
Vue.prototype.$myutil = myutil
Vue.prototype.$Member = Member
Vue.prototype.$groups = groups

if (!process.env.IS_WEB) Vue.use(require('vue-electron'))
Vue.http = Vue.prototype.$http = axios
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  components: { App },
  router,
  store,
  template: '<App/>'
}).$mount('#app')
